package com.zb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author WEN
 * @Date 2023/8/14 0014
 **/
@Data
@ApiModel("字段下拉对象")
public class SelectFieldVo extends SelectResultVo{
    @ApiModelProperty(value = "字段类型：1-多行文本、2-单选、3-多选、4-附件、5-手机号")
    private Integer type;

    @ApiModelProperty(value = "图片、附件、视频上传尺寸大小，单位：M")
    private Integer uploadSize;

    @ApiModelProperty(value = "上传数量，最多可上传10张")
    private Integer uploadQty;

    @ApiModelProperty(value = "提示信息")
    private String tip;

    @ApiModelProperty(value = "是否必填：false-否，true-是")
    private Boolean required;

    @ApiModelProperty(value = "单选/多选内容")
    private List<String> strs;

    public SelectFieldVo(){}

    public SelectFieldVo(Long id, String name, Integer type, Boolean required) {
        super(id, name);
        this.type = type;
        this.required = required;
    }

    public SelectFieldVo(Long id, String name, Integer type, Integer uploadSize, int uploadQty, String tip, Boolean required, List<String> strs) {
        super(id, name);
        this.type = type;
        this.uploadSize = uploadSize;
        this.uploadQty = uploadQty;
        this.tip = tip;
        this.required = required;
        this.strs = strs;
    }
}
